package com.ruoyi.scsystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.scsystem.mapper.SysDepartmentStatMapper;
import com.ruoyi.scsystem.domain.SysDepartmentStat;
import com.ruoyi.scsystem.service.ISysDepartmentStatService;

/**
 * 查询统计Service业务层处理
 * 
 * @author cai
 * @date 2022-09-19
 */
@Service
public class SysDepartmentStatServiceImpl implements ISysDepartmentStatService 
{
    @Autowired
    private SysDepartmentStatMapper sysDepartmentStatMapper;

    /**
     * 查询查询统计
     * 
     * @param id 查询统计主键
     * @return 查询统计
     */
    @Override
    public SysDepartmentStat selectSysDepartmentStatById(Integer id)
    {
        return sysDepartmentStatMapper.selectSysDepartmentStatById(id);
    }

    /**
     * 查询查询统计列表
     * 
     * @param sysDepartmentStat 查询统计
     * @return 查询统计
     */
    @Override
    public List<SysDepartmentStat> selectSysDepartmentStatList(SysDepartmentStat sysDepartmentStat)
    {
        return sysDepartmentStatMapper.selectSysDepartmentStatList(sysDepartmentStat);
    }

    /**
     * 新增查询统计
     * 
     * @param sysDepartmentStat 查询统计
     * @return 结果
     */
    @Override
    public int insertSysDepartmentStat(SysDepartmentStat sysDepartmentStat)
    {
        return sysDepartmentStatMapper.insertSysDepartmentStat(sysDepartmentStat);
    }

    /**
     * 修改查询统计
     * 
     * @param sysDepartmentStat 查询统计
     * @return 结果
     */
    @Override
    public int updateSysDepartmentStat(SysDepartmentStat sysDepartmentStat)
    {
        return sysDepartmentStatMapper.updateSysDepartmentStat(sysDepartmentStat);
    }

    /**
     * 批量删除查询统计
     * 
     * @param ids 需要删除的查询统计主键
     * @return 结果
     */
    @Override
    public int deleteSysDepartmentStatByIds(Integer[] ids)
    {
        return sysDepartmentStatMapper.deleteSysDepartmentStatByIds(ids);
    }

    /**
     * 删除查询统计信息
     * 
     * @param id 查询统计主键
     * @return 结果
     */
    @Override
    public int deleteSysDepartmentStatById(Integer id)
    {
        return sysDepartmentStatMapper.deleteSysDepartmentStatById(id);
    }
}
